package com.hxtec.polaris.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.sql.Date;

/**
 * @Author Marcus lv
 * @create 2019/11/28 5:51 下午
 */
@Entity
@Data
@Builder
@Table(name = "shop_user", schema = "hx_tec_shop")
@EntityListeners(AuditingEntityListener.class)
@NoArgsConstructor
@AllArgsConstructor
public class ShopUserEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String miniWxId;
    private String wxId;
    private String mobile;
    private String username;
    private String nickname;
    private String portrait;
    private String password;
    private String gender;

    @CreatedDate
    private Date createTime;
    @LastModifiedDate
    private Date updateTime;

    private Date birthday;
    private String state;
    private String isDelete;
    private String comment1;
    private String comment2;
    private String comment3;
}
